home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 9 code / TermWindow / TermWindow.h < prev   
Encoding:
C/C++ Source or Header  |  1992-01-06  |  2.6 KB  |  89 lines  |  [TEXT/MPS ]

  1. /******************************************************************************
  2. **
  3. **  Project Name:    SampleTermWindow
  4. **     File Name:    TermWindow.h
  5. **
  6. **   Description:    Header file for TermWindow.c
  7. **
  8. **                       Copyright © 1988-1991 Apple Computer, Inc.
  9. **                       All rights reserved.
  10. **
  11. *******************************************************************************
  12. **                       A U T H O R   I D E N T I T Y
  13. *******************************************************************************
  14. **
  15. **    Initials    Name
  16. **    --------    -----------------------------------------------
  17. **    CSH            Craig Hotchkiss
  18. **
  19. *******************************************************************************
  20. **                      R E V I S I O N   H I S T O R Y
  21. *******************************************************************************
  22. **
  23. ******************************************************************************/
  24.  
  25.  
  26.  
  27. #ifndef __TERMWINDOW__
  28.     #define __TERMWINDOW__
  29.  
  30.  
  31.  
  32. /********************************************************************************
  33. *                    Application stuctures - Typedefs
  34. ********************************************************************************/
  35. struct TermWindowRec
  36. {
  37.     WindowRecord                fWindowRec;            // so it can be a WindowPtr
  38.     short                        fWindowType;        // for application usage
  39.     TermHandle                    fTermHandle;        // CommToolBox terminal handle
  40.     TermEnvironRec                fTermEnvirons;        // needed for environs info
  41.     ControlHandle                fVertScroll;        // vertical scroll bar
  42.     ControlHandle                fHorizScroll;        // horizontal scroll bar
  43.     Point                        fMinWindowSize;        // width/height of window
  44. };
  45. typedef    struct TermWindowRec TermWindowRec;
  46. typedef    TermWindowRec *TermWindowPtr;
  47.  
  48.  
  49.  
  50. #ifdef __cplusplus
  51.     extern "C" {
  52. #endif
  53.  
  54.  
  55. /********************************************************************************
  56. *                                PROTOTYPEs
  57. ********************************************************************************/
  58. pascal    OSErr        InitTermMgr(void);
  59.  
  60. pascal    OSErr        NewTermWindow(TermWindowPtr *termPtr,
  61.                         const Rect *boundsRect, 
  62.                         ConstStr255Param title, 
  63.                         Boolean visible,
  64.                         short theProc, 
  65.                         WindowPtr behind,
  66.                         Boolean goAwayFlag,
  67.                         Str31 toolName);
  68. pascal    void        DisposeTermWindow(TermWindowPtr termPtr);
  69.  
  70. pascal    Boolean        IsTermWindowEvent(TermWindowPtr termPtr, 
  71.                         const EventRecord *theEventPtr);
  72. pascal    void        HandleTermWindowEvent(TermWindowPtr termPtr, 
  73.                         const EventRecord *theEventPtr);
  74.  
  75.  
  76. pascal    OSErr        WriteToTermWindow(TermWindowPtr termPtr, Ptr theData, 
  77.                         Size *lengthOfData);
  78.  
  79.  
  80. pascal    void        FillTermWindow(TermWindowPtr termPtr);
  81.  
  82.  
  83. #ifdef __cplusplus
  84.     }
  85. #endif
  86.  
  87.  
  88. #endif __TERMWINDOW__
  89.